import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      keepAlive: true,
      order: 1,
      title: '店铺数据',
    },
    name: 'Dashboard',
    path: '/dashboard',
    redirect: '/dashboard/analytics',
    children: [
      // {
      //   name: 'BigData',
      //   path: '/dashboard/big-data',
      //   component: () => import('#/views/dashboard/bigData/index.vue'),

      //   meta: {
      //     title: '数据大屏',
      //     hidden: true, // 隐藏
      //   },
      // },
      {
        name: 'Analytics',
        path: '/dashboard/analytics',
        component: () => import('#/views/dashboard/analytics/index.vue'),
        meta: {
          title: '数据报表',
        },
      },
      {
        meta: {
          title: '整体利润',
        },
        name: 'upShopProfitTotal',
        path: '/shopProfit/up-shop-profit-total',
        component: () => import('#/views/ShopOrder/shopProfitTotal.vue'),
      },
      {
        meta: {
          title: '每日利润',
        },
        name: 'upShopProfitDay',
        path: '/shopProfit/up-shop-profit-days',
        component: () => import('#/views/ShopOrder/shopProfitDays.vue'),
      },
    ],
  },
];

export default routes;
